/*
 * @Author: your name
 * @Date: 2021-12-02 17:08:31
 * @LastEditTime: 2021-12-08 11:13:02
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \demo\src\api\house.js
 */
import request from '@/utils/request.js'

export function getHouseInfo (id) {
  return request({
    url: '/houses/' + id
  })
}

export function getRentList () {
  return request({
    url: '/user/houses'
  })
}

export function getHousesParams () {
  return request({
    url: '/houses/params'
  })
}

// 获取房屋查询条件
export function getHousesConditionInfo (id) {
  return request({
    url: '/houses/condition',
    params: {
      id
    }
  })
}
